package com.example.wlzz.repository.mongoRepository;

import com.example.wlzz.entity.mongoEntity.TaskReceive;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface TaskReceiveRepository  extends MongoRepository<TaskReceive,String>{
     TaskReceive findByTaskIdAndUserid(String taskId,int userid);
     List<TaskReceive> findByUseridAndStatus(int userid, int status);
     TaskReceive findByTaskIdAndStatus(String taskId,int status);
     //查询自己接受的任务
     Page<TaskReceive> findByUserid(int userid,Pageable pageable);
     Page<TaskReceive> findByUseridAndStatus(int userid,int status,Pageable pageable);
}
